<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
	<head>
		<title>用户信息</title>
	</head>
	<body>
		<html:form action="/account/user.do" styleId="mainForm" method="POST">
			<input type="hidden" name="method" class="method" value="save" />
			<html:hidden property="id" />
			<table class="table-layout">
				<tr class="tr-odd">
					<td class="td-label">姓名</td>
					<td><html:text property="loginName" /></td>
				</tr>
				<tr class="tr-even">
					<td class="td-label">密码</td>
					<td><html:text property="loginPassword" /></td>
				</tr>
				<tr class="tr-odd">
					<td class="td-label"><label>昵称</label></td>
					<td><html:text property="otherName" /></td>
				</tr>
				<tr class="tr-even">
					<td class="td-label">角色</td>
					<td>
						<table>
							<logic-el:iterate name="allRoles" id="role" indexId="index">
								<tr class="<c:if test="${index % 2 == 0}">tr-odd</c:if><c:if test="${index % 2 == 1}">tr-even</c:if>">
									<td>
										<html-el:multibox property="relativeRoleIds">
											<c:out value="${role.id}" />
										</html-el:multibox>
									</td>
									<td><c:out value="${role.title}" /> &nbsp;</td>
								</tr>
							</logic-el:iterate>
						</table>
					</td>
				</tr>
			</table>
			<br />
			<div class="center-opertion">
				<html:submit styleClass="button">提交</html:submit>
				<button onclick="submitMethod('saveAndMore','mainForm')" class="button">保存并填写更多信息</button>
				<html:cancel styleClass="button">取消</html:cancel>
			</div>
		</html:form>
	</body>
</html>